<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Cart extends Model
{
    protected $appends = ['product'];

    public function getProductAttribute(){
        return Product::find($this->product_id);
    }
}
